package com.traffic.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.traffic.entity.UserInfo;
import org.springframework.cache.annotation.CacheConfig;
import org.springframework.cache.annotation.Cacheable;

import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: KingRainGrey
 * Date: 2020/9/4
 */
public interface UserInfoService extends IService<UserInfo> {
    UserInfo saveInfo(UserInfo userInfo);

    UserInfo updateInfo(UserInfo userInfo);

    UserInfo queryInfo(String phone);

    UserInfo addOrUpdateHeadImg(String account, Long id);

    UserInfo editUserInfo(UserInfo userInfo);

    UserInfo editUserInfoIncludePhone(UserInfo userInfo);

    UserInfo getUserInfoByUserId(Long userId);

    UserInfo getUserInfoByPhone(String phone);

    Boolean deleteUser(Long userId);


}
